<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="mb10">
		<a href='<yjd:url url="/tag/toadd"/>' class="btn"><span class="add"></span>添加标签</a>
	</div>
	<div class="table_list">
		<table width="100%">
			<thead>
				<tr>
					<td width="50">id</td>
					<td>标签名称</td>
					<td>排序</td>
					<td>是否置顶</td>
					<td>是否启用</td>
					<td>新增时间</td>
					<td>修改时间</td>
					<td width="150px">操作</td>
				</tr>
			</thead>
			<tbody id="J_word_list">
			<c:forEach items="${list }" var="item">
				<tr>
					<td>${item.tag_id }</td>
					<td>${item.tag_name }</td>
					<td>${item.tag_sort }</td>
					<td><c:if test="${item.top==0}">否</c:if><c:if test="${item.top==1}">是</c:if></td>
					<td><c:if test="${item.enable==0}">否</c:if><c:if test="${item.enable==1}">是</c:if></td>
					<td><yjd:jstl_date value="${item.create_time }" parttern="yyyy-MM-dd HH:mm:ss"/></td>
					<td><yjd:jstl_date value="${item.last_update_time }" parttern="yyyy-MM-dd HH:mm:ss"/></td>
					<td>
						<a href='<yjd:url url="/tag/toedit/${item.tag_id }"/>' class="btn mr10">编辑</a>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
	</div>
</div>